﻿#ifndef CMDTBHIDEORSHOWTABLECOLUMN_H
#define CMDTBHIDEORSHOWTABLECOLUMN_H

#include "CommandManager/CommandBase.h"



namespace PostCommand
{
    class CmdTbHideOrShowTableColumn : public CommandManager::CommandBase
    {
        Q_OBJECT
    public:
        CmdTbHideOrShowTableColumn();
        ~CmdTbHideOrShowTableColumn();

        bool execute() override;
        void undo() override; 
        void redo() override;
        void setWindowId(int windowId) { m_windowId = windowId; }
        void setSelectedIndex(QString selectedIndex) { m_selectedIndex = selectedIndex; }

    private:
        int m_windowId;
        QString m_selectedIndex;
    };
}
#endif // CMDTBHIDEORSHOWTABLECOLUMN_H



